package com.ruizhong.centercontroll.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import java.util.List;
import java.util.Map;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_textView")
@XmlRootElement
public class TTextView {
    @XmlTransient
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @XmlTransient
    private Integer pageId;
    private String textValue;
    private Double w;
    private Double h;
    private Double x;
    private Double y;
    private Integer z;
    private String fontColor;
    private Integer fontSize;
    private Double rotate;
    private String traditionalTextValue;
    private String englishTextValue;
    private String displayVariableName;
    private String displayVariableValue;
    private Integer conditionShowData;

    private String logicGraphData;

    @XmlTransient
    @TableField(exist = false)
    private Map logicGraph;

    @XmlTransient
    @TableField(exist = false)
    private Boolean conditionShow;
    @XmlTransient
    @TableField(exist = false)
    private String type = "TEXTVIEW";

    @XmlTransient
    @TableField(exist = false)
    private List<TCommand> initCommandList;

    @XmlTransient
    public String getType() {
        return type;
    }

    @XmlTransient
    public Boolean getConditionShow() {
        return conditionShow;
    }

    @XmlTransient
    public List<TCommand> getInitCommandList() {
        return initCommandList;
    }

    @XmlTransient
    public Map getLogicGraph() {
        return logicGraph;
    }

    @XmlTransient
    public Integer getPageId() {
        return pageId;
    }

    @XmlTransient
    public Integer getId() {
        return id;
    }





}
